home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / multitasking / monitors / top / smakefile < prev    next >
Makefile  |  2000-03-05  |  779b  |  52 lines

  1. #
  2. #   SMakefile for top
  3. #
  4. # Gary Duncan (gduncan@werple.net.au)
  5. #
  6. #
  7.  
  8. INC=Proto
  9.  
  10. C_INCS = top.h typedefs.h
  11.  
  12. # debug stuff ; enable SF
  13. #
  14. ##SF=debug=sf
  15. SF= 
  16.  
  17. O=O/
  18.  
  19. SO=ObjectName=$(O) noIcons
  20.  
  21. PROTO    = $(INC)/top_protos.h
  22.  
  23. TOP    = top
  24.  
  25. OBJS    = $(O)top.o $(O)top_stub.o
  26.  
  27. all:    $(TOP) 
  28.  
  29. $(TOP) : $(PROTO) $(OBJS)
  30.     slink  FROM lib:c.o  $(OBJS) TO $(TOP)  \
  31.         LIB lib:sc.lib  lib:amiga.lib noIcons quiet  
  32.  
  33. #
  34. # NEEEED nostackcheck below to prevent _XCEXIT link errors!!
  35. #
  36. $(O)top.o   : top.c $(C_INCS) 
  37.     sc $(SF) nover nostackcheck  $(SO) top
  38.     
  39.     
  40. $(O)top_stub.o       : top_stub.asm
  41.         asm -o$(O) top_stub.asm
  42.   
  43. protos:
  44.     sc novers genprotos GenProtoFile=$(INC)/top_protos.h top.c
  45.         @Delete $(INC)/\#?.info >nil:
  46.  
  47. indent:
  48.     indent -gnu top.c
  49.  
  50. clean:
  51.     Delete  $(OBJS) $(TOP)  >nil: 
  52.